<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
 </tr>
 </tbody>
</table>
</div>
<body bgcolor="#ffffff">
<table width="100%">
  <tr>
    <td width="30%" align="left" valign="center">
      <a href="https://github.com/open-source-parsers/jsoncpp">
      JsonCpp project page
      </a>
    </td>
    <td width="20%" align="center" valign="center">
      <a href="hierarchy.html">
        Classes
      </a>
    </td>
    <td width="20%" align="center" valign="center">
      <a href="namespace_json.html">
        Namespace
      </a>
    </td>
    <td width="30%" align="right" valign="center">
      <a href="http://open-source-parsers.github.io/jsoncpp-docs/doxygen/">JsonCpp home page</a>
    </td>
  </tr>
</table>
<hr>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_json_1_1_reader.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_json_1_1_reader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Json::Reader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Unserialize a <a href="http://www.json.org">JSON</a> document into a <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a>.  
 <a href="class_json_1_1_reader.html#details">More...</a></p>

<p><code>#include &lt;json/reader.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_json_1_1_reader_1_1_structured_error.html">StructuredError</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An error tagged with where in the JSON text it was encountered.  <a href="struct_json_1_1_reader_1_1_structured_error.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3eec9118f3e9a672ba8348c3a79d0f45"><td class="memItemLeft" align="right" valign="top">typedef char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#a3eec9118f3e9a672ba8348c3a79d0f45">Char</a></td></tr>
<tr class="separator:a3eec9118f3e9a672ba8348c3a79d0f45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46795b5b272bf79a7730e406cb96375a"><td class="memItemLeft" align="right" valign="top">typedef const <a class="el" href="class_json_1_1_reader.html#a3eec9118f3e9a672ba8348c3a79d0f45">Char</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#a46795b5b272bf79a7730e406cb96375a">Location</a></td></tr>
<tr class="separator:a46795b5b272bf79a7730e406cb96375a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0b3c4e24c8393354bab57a6ba3ffc27f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#a0b3c4e24c8393354bab57a6ba3ffc27f">Reader</a> ()</td></tr>
<tr class="memdesc:a0b3c4e24c8393354bab57a6ba3ffc27f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_json_1_1_reader.html" title="Unserialize a JSON document into a Value. ">Reader</a> allowing all features for parsing.  <a href="#a0b3c4e24c8393354bab57a6ba3ffc27f">More...</a><br /></td></tr>
<tr class="separator:a0b3c4e24c8393354bab57a6ba3ffc27f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45f17831118337309180313e93ac33f8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#a45f17831118337309180313e93ac33f8">Reader</a> (const <a class="el" href="class_json_1_1_features.html">Features</a> &amp;features)</td></tr>
<tr class="memdesc:a45f17831118337309180313e93ac33f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_json_1_1_reader.html" title="Unserialize a JSON document into a Value. ">Reader</a> allowing the specified feature set for parsing.  <a href="#a45f17831118337309180313e93ac33f8">More...</a><br /></td></tr>
<tr class="separator:a45f17831118337309180313e93ac33f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1da6c976ad1e96c742804c3853eef94"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#af1da6c976ad1e96c742804c3853eef94">parse</a> (const std::string &amp;document, <a class="el" href="class_json_1_1_value.html">Value</a> &amp;root, bool collectComments=true)</td></tr>
<tr class="memdesc:af1da6c976ad1e96c742804c3853eef94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a> from a <a href="http://www.json.org">JSON</a> document.  <a href="#af1da6c976ad1e96c742804c3853eef94">More...</a><br /></td></tr>
<tr class="separator:af1da6c976ad1e96c742804c3853eef94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac71ef2b64c7c27b062052e692af3fb32"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#ac71ef2b64c7c27b062052e692af3fb32">parse</a> (const char *beginDoc, const char *endDoc, <a class="el" href="class_json_1_1_value.html">Value</a> &amp;root, bool collectComments=true)</td></tr>
<tr class="memdesc:ac71ef2b64c7c27b062052e692af3fb32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a> from a <a href="http://www.json.org">JSON</a> document.  <a href="#ac71ef2b64c7c27b062052e692af3fb32">More...</a><br /></td></tr>
<tr class="separator:ac71ef2b64c7c27b062052e692af3fb32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d0347e6b47343e4bc68be7ecdb9c4e9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#a8d0347e6b47343e4bc68be7ecdb9c4e9">parse</a> (std::istream &amp;is, <a class="el" href="class_json_1_1_value.html">Value</a> &amp;root, bool collectComments=true)</td></tr>
<tr class="memdesc:a8d0347e6b47343e4bc68be7ecdb9c4e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse from input stream.  <a href="#a8d0347e6b47343e4bc68be7ecdb9c4e9">More...</a><br /></td></tr>
<tr class="separator:a8d0347e6b47343e4bc68be7ecdb9c4e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a269793929575f925b629460c9c744da1"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#a269793929575f925b629460c9c744da1">getFormatedErrorMessages</a> () const</td></tr>
<tr class="memdesc:a269793929575f925b629460c9c744da1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a user friendly string that list errors in the parsed document.  <a href="#a269793929575f925b629460c9c744da1">More...</a><br /></td></tr>
<tr class="separator:a269793929575f925b629460c9c744da1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e624688f0794da1e737d2a15aa5cb84"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#a5e624688f0794da1e737d2a15aa5cb84">getFormattedErrorMessages</a> () const</td></tr>
<tr class="memdesc:a5e624688f0794da1e737d2a15aa5cb84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a user friendly string that list errors in the parsed document.  <a href="#a5e624688f0794da1e737d2a15aa5cb84">More...</a><br /></td></tr>
<tr class="separator:a5e624688f0794da1e737d2a15aa5cb84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3d714e95bd98b27e296c607e408189b"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="struct_json_1_1_reader_1_1_structured_error.html">StructuredError</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#ae3d714e95bd98b27e296c607e408189b">getStructuredErrors</a> () const</td></tr>
<tr class="memdesc:ae3d714e95bd98b27e296c607e408189b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a vector of structured erros encounted while parsing.  <a href="#ae3d714e95bd98b27e296c607e408189b">More...</a><br /></td></tr>
<tr class="separator:ae3d714e95bd98b27e296c607e408189b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade6c28e0ef00d8f2e0aa2283f91c3e37"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#ade6c28e0ef00d8f2e0aa2283f91c3e37">pushError</a> (const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;value, const std::string &amp;message)</td></tr>
<tr class="memdesc:ade6c28e0ef00d8f2e0aa2283f91c3e37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a semantic error message.  <a href="#ade6c28e0ef00d8f2e0aa2283f91c3e37">More...</a><br /></td></tr>
<tr class="separator:ade6c28e0ef00d8f2e0aa2283f91c3e37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b474233c3a7c688e340e70665d45223"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#a9b474233c3a7c688e340e70665d45223">pushError</a> (const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;value, const std::string &amp;message, const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;extra)</td></tr>
<tr class="memdesc:a9b474233c3a7c688e340e70665d45223"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a semantic error message with extra context.  <a href="#a9b474233c3a7c688e340e70665d45223">More...</a><br /></td></tr>
<tr class="separator:a9b474233c3a7c688e340e70665d45223"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86cbb42b3e6d4a4d6416473b1a8f6ae7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_reader.html#a86cbb42b3e6d4a4d6416473b1a8f6ae7">good</a> () const</td></tr>
<tr class="memdesc:a86cbb42b3e6d4a4d6416473b1a8f6ae7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return whether there are any errors.  <a href="#a86cbb42b3e6d4a4d6416473b1a8f6ae7">More...</a><br /></td></tr>
<tr class="separator:a86cbb42b3e6d4a4d6416473b1a8f6ae7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Unserialize a <a href="http://www.json.org">JSON</a> document into a <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a>. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>Use <a class="el" href="class_json_1_1_char_reader.html" title="Interface for reading JSON from a char array. ">CharReader</a> and <a class="el" href="class_json_1_1_char_reader_builder.html" title="Build a CharReader implementation. ">CharReaderBuilder</a>. </dd></dl>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a3eec9118f3e9a672ba8348c3a79d0f45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3eec9118f3e9a672ba8348c3a79d0f45">&#9670;&nbsp;</a></span>Char</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef char <a class="el" href="class_json_1_1_reader.html#a3eec9118f3e9a672ba8348c3a79d0f45">Json::Reader::Char</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a46795b5b272bf79a7730e406cb96375a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46795b5b272bf79a7730e406cb96375a">&#9670;&nbsp;</a></span>Location</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef const <a class="el" href="class_json_1_1_reader.html#a3eec9118f3e9a672ba8348c3a79d0f45">Char</a>* <a class="el" href="class_json_1_1_reader.html#a46795b5b272bf79a7730e406cb96375a">Json::Reader::Location</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0b3c4e24c8393354bab57a6ba3ffc27f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b3c4e24c8393354bab57a6ba3ffc27f">&#9670;&nbsp;</a></span>Reader() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Json::Reader::Reader </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a <a class="el" href="class_json_1_1_reader.html" title="Unserialize a JSON document into a Value. ">Reader</a> allowing all features for parsing. </p>

</div>
</div>
<a id="a45f17831118337309180313e93ac33f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45f17831118337309180313e93ac33f8">&#9670;&nbsp;</a></span>Reader() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Json::Reader::Reader </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_features.html">Features</a> &amp;&#160;</td>
          <td class="paramname"><em>features</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a <a class="el" href="class_json_1_1_reader.html" title="Unserialize a JSON document into a Value. ">Reader</a> allowing the specified feature set for parsing. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a269793929575f925b629460c9c744da1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a269793929575f925b629460c9c744da1">&#9670;&nbsp;</a></span>getFormatedErrorMessages()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Json::Reader::getFormatedErrorMessages </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a user friendly string that list errors in the parsed document. </p>
<dl class="section return"><dt>Returns</dt><dd>Formatted error message with the list of errors with their location in the parsed document. An empty string is returned if no error occurred during parsing. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>Use <a class="el" href="class_json_1_1_reader.html#a5e624688f0794da1e737d2a15aa5cb84" title="Returns a user friendly string that list errors in the parsed document. ">getFormattedErrorMessages()</a> instead (typo fix). </dd></dl>

</div>
</div>
<a id="a5e624688f0794da1e737d2a15aa5cb84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e624688f0794da1e737d2a15aa5cb84">&#9670;&nbsp;</a></span>getFormattedErrorMessages()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Json::Reader::getFormattedErrorMessages </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a user friendly string that list errors in the parsed document. </p>
<dl class="section return"><dt>Returns</dt><dd>Formatted error message with the list of errors with their location in the parsed document. An empty string is returned if no error occurred during parsing. </dd></dl>

</div>
</div>
<a id="ae3d714e95bd98b27e296c607e408189b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3d714e95bd98b27e296c607e408189b">&#9670;&nbsp;</a></span>getStructuredErrors()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; <a class="el" href="struct_json_1_1_reader_1_1_structured_error.html">Reader::StructuredError</a> &gt; Json::Reader::getStructuredErrors </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a vector of structured erros encounted while parsing. </p>
<dl class="section return"><dt>Returns</dt><dd>A (possibly empty) vector of <a class="el" href="struct_json_1_1_reader_1_1_structured_error.html" title="An error tagged with where in the JSON text it was encountered. ">StructuredError</a> objects. Currently only one error can be returned, but the caller should tolerate multiple errors. This can occur if the parser recovers from a non-fatal parse error and then encounters additional errors. </dd></dl>

</div>
</div>
<a id="a86cbb42b3e6d4a4d6416473b1a8f6ae7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86cbb42b3e6d4a4d6416473b1a8f6ae7">&#9670;&nbsp;</a></span>good()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Json::Reader::good </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return whether there are any errors. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if there are no errors to report <code>false</code> if errors have occurred. </dd></dl>

</div>
</div>
<a id="af1da6c976ad1e96c742804c3853eef94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1da6c976ad1e96c742804c3853eef94">&#9670;&nbsp;</a></span>parse() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Json::Reader::parse </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>document</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>root</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>collectComments</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a> from a <a href="http://www.json.org">JSON</a> document. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">document</td><td>UTF-8 encoded string containing the document to read. </td></tr>
    <tr><td class="paramname">root</td><td>[out] Contains the root value of the document if it was successfully parsed. </td></tr>
    <tr><td class="paramname">collectComments</td><td><code>true</code> to collect comment and allow writing them back during serialization, <code>false</code> to discard comments. This parameter is ignored if <a class="el" href="class_json_1_1_features.html#a33afd389719624b6bdb23950b3c346c9" title="true if comments are allowed. Default: true. ">Features::allowComments_</a> is <code>false</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the document was successfully parsed, <code>false</code> if an error occurred. </dd></dl>

</div>
</div>
<a id="ac71ef2b64c7c27b062052e692af3fb32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac71ef2b64c7c27b062052e692af3fb32">&#9670;&nbsp;</a></span>parse() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Json::Reader::parse </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>beginDoc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>endDoc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>root</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>collectComments</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a> from a <a href="http://www.json.org">JSON</a> document. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">beginDoc</td><td>Pointer on the beginning of the UTF-8 encoded string of the document to read. </td></tr>
    <tr><td class="paramname">endDoc</td><td>Pointer on the end of the UTF-8 encoded string of the document to read. Must be &gt;= beginDoc. </td></tr>
    <tr><td class="paramname">root</td><td>[out] Contains the root value of the document if it was successfully parsed. </td></tr>
    <tr><td class="paramname">collectComments</td><td><code>true</code> to collect comment and allow writing them back during serialization, <code>false</code> to discard comments. This parameter is ignored if <a class="el" href="class_json_1_1_features.html#a33afd389719624b6bdb23950b3c346c9" title="true if comments are allowed. Default: true. ">Features::allowComments_</a> is <code>false</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the document was successfully parsed, <code>false</code> if an error occurred. </dd></dl>

</div>
</div>
<a id="a8d0347e6b47343e4bc68be7ecdb9c4e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d0347e6b47343e4bc68be7ecdb9c4e9">&#9670;&nbsp;</a></span>parse() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Json::Reader::parse </td>
          <td>(</td>
          <td class="paramtype">std::istream &amp;&#160;</td>
          <td class="paramname"><em>is</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>root</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>collectComments</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Parse from input stream. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="namespace_json.html#a4d245ef719cc0853e8e78eb5f99c16e5" title="Read from &#39;sin&#39; into &#39;root&#39;. ">Json::operator&gt;&gt;(std::istream&amp;, Json::Value&amp;)</a>. </dd></dl>

</div>
</div>
<a id="ade6c28e0ef00d8f2e0aa2283f91c3e37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade6c28e0ef00d8f2e0aa2283f91c3e37">&#9670;&nbsp;</a></span>pushError() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Json::Reader::pushError </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>message</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a semantic error message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>JSON <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a> location associated with the error </td></tr>
    <tr><td class="paramname">message</td><td>The error message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the error was successfully added, <code>false</code> if the <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a> offset exceeds the document size. </dd></dl>

</div>
</div>
<a id="a9b474233c3a7c688e340e70665d45223"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b474233c3a7c688e340e70665d45223">&#9670;&nbsp;</a></span>pushError() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Json::Reader::pushError </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>extra</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a semantic error message with extra context. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>JSON <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a> location associated with the error </td></tr>
    <tr><td class="paramname">message</td><td>The error message. </td></tr>
    <tr><td class="paramname">extra</td><td>Additional JSON <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a> location to contextualize the error </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the error was successfully added, <code>false</code> if either <a class="el" href="class_json_1_1_value.html" title="Represents a JSON value. ">Value</a> offset exceeds the document size. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/json/<a class="el" href="reader_8h.html">reader.h</a></li>
<li>src/lib_json/<a class="el" href="json__reader_8cpp.html">json_reader.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_json.html">Json</a></li><li class="navelem"><a class="el" href="class_json_1_1_reader.html">Reader</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
